package com.gopay.common.domain.dic;

import java.math.BigDecimal;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.gopay.common.domain.BaseEntity;

/**
 * @ClassName: DicCbrmbCorpnameReg 
 * @Description: 跨境企业名称规则表
 * @author huangcheng 
 * @date 2017年9月6日 下午5:30:01
 */
@Entity
@Table(name = "DIC_CBRMB_CORPNAME_REG")
public class DicCbrmbCorpnameReg extends BaseEntity {

    private static final long serialVersionUID = 6177085749836585132L;

    /** 
     * 序号
     */
    private BigDecimal seq;

    /** 
     * 规则内容
     */
    private String reg;

    /** 
     * 规则语言类型 C-中文 E-英文
     */
    private String language;

    /**
     * 规则判断逻辑 F-开头 C-包含 E-结尾
     */
    private String location;

    /**
     * 生效标识 0-不生效 1-生效
     */
    private String flag;

    public DicCbrmbCorpnameReg() {
    }

    public DicCbrmbCorpnameReg(BigDecimal seq) {
        setSeq(seq);
    }

    public DicCbrmbCorpnameReg(BigDecimal seq, String reg, String language, String location, String flag) {
        setSeq(seq);
        setReg(reg);
        setLanguage(language);
        setLocation(location);
        setFlag(flag);
    }

    @Id

    @Column(name = "SEQ", unique = true, nullable = false, precision = 22, scale = 0)
    public BigDecimal getSeq() {
        return this.seq;
    }

    public void setSeq(BigDecimal seq) {
        this.seq = seq;
    }

    @Column(name = "REG", length = 20)
    public String getReg() {
        return this.reg;
    }

    public void setReg(String reg) {
        this.reg = reg;
    }

    @Column(name = "LANGUAGE", length = 1)
    public String getLanguage() {
        return this.language;
    }

    public void setLanguage(String language) {
        this.language = language;
    }

    @Column(name = "LOCATION", length = 1)
    public String getLocation() {
        return this.location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    @Column(name = "FLAG", length = 1)
    public String getFlag() {
        return this.flag;
    }

    public void setFlag(String flag) {
        this.flag = flag;
    }

}
